package com.cssy.xxkj.logic.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.transaction.annotation.Transactional;

import com.cssy.base.service.IBaseService;
import com.cssy.xxkj.logic.entity.LogicProductionPlanDO;
import com.cssy.xxkj.logic.entity.LogicProductionPlanItemDO;
import com.cssy.xxkj.logic.entity.LogicSalesDO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;

public interface ILogicProductionPlanService  extends IBaseService<LogicProductionPlanDO>{
    /**
     * 查询生产计划ITEM
     */
	public List<LogicProductionPlanItemDO> findPlanItemList(String planId) throws SyBaseException;
	
	public List<LogicProductionPlanItemDO> findItemListByExample(SearchConditions scs)throws SyBaseException;
	
	/**
	 * 保存
	 * @param request
	 * @param curAP
	 * @throws SyBaseException
	 */
	@Transactional
	public void planSave(HttpServletRequest request,LogicProductionPlanDO curAP)throws SyBaseException;
	
	/**
	 * 查询可用的PI单号
	 * @return
	 * @throws SyBaseException
	 */
	public List<LogicSalesDO> findPiCode(String code)throws SyBaseException;
	
	public void deleteBizRemovedBySaleId(String backSaleId)throws SyBaseException;
}
